<!DOCTYPE html >
<html>
<head>
<meta name="Generator" content="tpshop" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>购物流程-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="stylesheet" href="__STATIC__/css/public.css">
<link rel="stylesheet" href="__STATIC__/css/flow.css">
<link rel="stylesheet" href="__STATIC__/css/style_jm.css">
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
</head>
<body style="background: rgb(235, 236, 237);position:relative;">
<div class="tab_nav">
    <div class="header">
      <div class="h-left">
        <a class="sb-back" href="javascript:history.back(-1)" title="返回"></a>
      </div>
      <div class="h-mid"> 提交订单      </div>
    </div>
</div>

<div class="screen-wrap fullscreen login">
<form action="{:U('Mobile/Payment/getCode')}" method="post" name="cart4_form" id="cart4_form">
<div class="content_success " >
    <div class="con-ct   fo-con">
        <h4 class="successtijiao">订单已经提交成功！</h4>
      <ul class="ct-list">
        <li>请您在<span>{$pay_date}</span>前完成支付，否则订单将自动取消！：</li>
        <li >订单号：
            <em>
                    <if condition="$master_order_sn neq ''">                        
                        &nbsp;&nbsp;{$master_order_sn}
                    <else />
                        &nbsp;&nbsp;{$order['order_sn']}
                    </if>
            </em>
        </li>
        <li>支付金额：
            <em>
                    <if condition="$master_order_sn neq ''">                        
                        ￥{$sum_order_amount}元                        
                    <else />
                    	￥{$order['order_amount']}元
                    </if>                        
            </em>
        </li>
      </ul>
    </div>
    
   <section class="order-info">
          <div class="order-list">
            <div class="content ptop0">
              <div class="panel panel-default info-box">
                <div class="panel-body" id="pay_div"  >
                  <div class="title" id="zhifutitle" style="border-bottom:1px solid #eeeeee;"> <span class="i-icon-arrow-down i-icon-arrow-up" id="zhifuip"></span> <span class="text">支付方式</span> <a href="javascript:void(0)" title="修改商品列表" class="link">必选</a> <em class="qxz" id="emzhifu">请选择支付方式</em> </div>
                  <ul class="nav nav-list-sidenav" id="zhifu68" style="display:block; border-bottom:none;">
                  <foreach name="paymentList" item="v"  key="k"> 
                    <li class="clearfix" name="payment_name">
                      <label>
                          <input type="radio"   value="pay_code={$v['code']}" class="c_checkbox_t" name="pay_radio" />
                          <div class="fl shipping_title">
	                          <img src="/plugins/{$v['type']}/{$v['code']}/{$v['icon']}" onClick="change_pay(this);" width="110" height="40" />
                          </div>
                      </label>
                    </li>
                   </foreach> 
                  </ul>
                </div>
              </div>
            </div>
          </div>
        </section>
  <div class="pay-btn">
	<input type="hidden" name="master_order_sn" value="{$master_order_sn}" />
	<input type="hidden" name="order_id" value="{$order['order_id']}" />
    <a href="javascript:void(0);" onClick="pay()" class="sub-btn btnRadius">去支付</a>
  </div>
</div>
</form>
<script>
    $(document).ready(function(){
        $("input[name='pay_radio']").first().trigger('click');
    });
    // 切换支付方式
    function change_pay(obj)
    {
        $(obj).parent().siblings('input[name="pay_radio"]').trigger('click');
    }

    function pay(){
        $('#cart4_form').submit();
        return;
        //微信JS支付
    }
</script> 
<include file="Public/footer"/>
</div>
<include file="Public/footer_nav"/>
</body>
</html>